<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>ESP8266_RTOS_SDK: GPIO Driver APIs</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266_RTOS_SDK
   &#160;<span id="projectnumber">v1.4.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">GPIO Driver APIs<div class="ingroups"><a class="el" href="group__Driver__APIs.html">Driver APIs</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>GPIO APIs.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga2cc3f29ed0d46de6cbd2f013281881a6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#ga2cc3f29ed0d46de6cbd2f013281881a6">GPIO_OUTPUT_SET</a>(gpio_no,  bit_value)&#160;&#160;&#160;<a class="el" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(bit_value&lt;&lt;gpio_no, ((~bit_value)&amp;0x01)&lt;&lt;gpio_no, 1&lt;&lt;gpio_no, 0)</td></tr>
<tr class="memdesc:ga2cc3f29ed0d46de6cbd2f013281881a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPIO pin output level.  <a href="#ga2cc3f29ed0d46de6cbd2f013281881a6">More...</a><br /></td></tr>
<tr class="separator:ga2cc3f29ed0d46de6cbd2f013281881a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae42853d0b143e451a9ad05465b353538"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#gae42853d0b143e451a9ad05465b353538">GPIO_OUTPUT</a>(gpio_bits,  bit_value)</td></tr>
<tr class="memdesc:gae42853d0b143e451a9ad05465b353538"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPIO pin output level.  <a href="#gae42853d0b143e451a9ad05465b353538">More...</a><br /></td></tr>
<tr class="separator:gae42853d0b143e451a9ad05465b353538"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc761184e3d3dbcac5088b099bb809cc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#gadc761184e3d3dbcac5088b099bb809cc">GPIO_DIS_OUTPUT</a>(gpio_no)    &#160;&#160;&#160;<a class="el" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(0, 0, 0, 1&lt;&lt;gpio_no)</td></tr>
<tr class="memdesc:gadc761184e3d3dbcac5088b099bb809cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable GPIO pin output.  <a href="#gadc761184e3d3dbcac5088b099bb809cc">More...</a><br /></td></tr>
<tr class="separator:gadc761184e3d3dbcac5088b099bb809cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae1dba8cd1835b53c3e8f19ed03704678"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#gae1dba8cd1835b53c3e8f19ed03704678">GPIO_AS_INPUT</a>(gpio_bits)    &#160;&#160;&#160;<a class="el" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(0, 0, 0, gpio_bits)</td></tr>
<tr class="memdesc:gae1dba8cd1835b53c3e8f19ed03704678"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable GPIO pin intput.  <a href="#gae1dba8cd1835b53c3e8f19ed03704678">More...</a><br /></td></tr>
<tr class="separator:gae1dba8cd1835b53c3e8f19ed03704678"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga42af7fcc6e27fda6e62210c756d859f5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#ga42af7fcc6e27fda6e62210c756d859f5">GPIO_AS_OUTPUT</a>(gpio_bits)  &#160;&#160;&#160;<a class="el" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(0, 0, gpio_bits, 0)</td></tr>
<tr class="memdesc:ga42af7fcc6e27fda6e62210c756d859f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable GPIO pin output.  <a href="#ga42af7fcc6e27fda6e62210c756d859f5">More...</a><br /></td></tr>
<tr class="separator:ga42af7fcc6e27fda6e62210c756d859f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa633831c2027196743ccd277cbf75572"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#gaa633831c2027196743ccd277cbf75572">GPIO_INPUT_GET</a>(gpio_no)      &#160;&#160;&#160;((<a class="el" href="group__GPIO__Driver__APIs.html#ga678824698fa5936b7928c24c6cfd0a17">gpio_input_get</a>()&gt;&gt;gpio_no)&amp;BIT0)</td></tr>
<tr class="memdesc:gaa633831c2027196743ccd277cbf75572"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sample the level of GPIO input.  <a href="#gaa633831c2027196743ccd277cbf75572">More...</a><br /></td></tr>
<tr class="separator:gaa633831c2027196743ccd277cbf75572"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaf94c9f201c7ee9ad7a71b5eb8b720b00"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#gaf94c9f201c7ee9ad7a71b5eb8b720b00">gpio16_output_conf</a> (void)</td></tr>
<tr class="memdesc:gaf94c9f201c7ee9ad7a71b5eb8b720b00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable GPIO16 output.  <a href="#gaf94c9f201c7ee9ad7a71b5eb8b720b00">More...</a><br /></td></tr>
<tr class="separator:gaf94c9f201c7ee9ad7a71b5eb8b720b00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4f83a12f673ab6e664c6ea129a1ca9c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#ga4f83a12f673ab6e664c6ea129a1ca9c2">gpio16_output_set</a> (uint8 value)</td></tr>
<tr class="memdesc:ga4f83a12f673ab6e664c6ea129a1ca9c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPIO16 output level.  <a href="#ga4f83a12f673ab6e664c6ea129a1ca9c2">More...</a><br /></td></tr>
<tr class="separator:ga4f83a12f673ab6e664c6ea129a1ca9c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacc7e5be6c1aed84fe3c3260deea64a3e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#gacc7e5be6c1aed84fe3c3260deea64a3e">gpio16_input_conf</a> (void)</td></tr>
<tr class="memdesc:gacc7e5be6c1aed84fe3c3260deea64a3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable GPIO pin intput.  <a href="#gacc7e5be6c1aed84fe3c3260deea64a3e">More...</a><br /></td></tr>
<tr class="separator:gacc7e5be6c1aed84fe3c3260deea64a3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4484530a542760c430ebb2e754b6e621"><td class="memItemLeft" align="right" valign="top">uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#ga4484530a542760c430ebb2e754b6e621">gpio16_input_get</a> (void)</td></tr>
<tr class="memdesc:ga4484530a542760c430ebb2e754b6e621"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sample the value of GPIO16 input.  <a href="#ga4484530a542760c430ebb2e754b6e621">More...</a><br /></td></tr>
<tr class="separator:ga4484530a542760c430ebb2e754b6e621"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad57551861ccb3b7f4d16c0de00717e29"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a> (uint32 set_mask, uint32 clear_mask, uint32 enable_mask, uint32 disable_mask)</td></tr>
<tr class="memdesc:gad57551861ccb3b7f4d16c0de00717e29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure Gpio pins out or input.  <a href="#gad57551861ccb3b7f4d16c0de00717e29">More...</a><br /></td></tr>
<tr class="separator:gad57551861ccb3b7f4d16c0de00717e29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7b94b7d43c84a8177f4301b6a001fae3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#ga7b94b7d43c84a8177f4301b6a001fae3">gpio_intr_handler_register</a> (void *fn, void *arg)</td></tr>
<tr class="memdesc:ga7b94b7d43c84a8177f4301b6a001fae3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register an application-specific interrupt handler for GPIO pin interrupts.  <a href="#ga7b94b7d43c84a8177f4301b6a001fae3">More...</a><br /></td></tr>
<tr class="separator:ga7b94b7d43c84a8177f4301b6a001fae3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae37bc72b183440f9733f14df516cee7b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#gae37bc72b183440f9733f14df516cee7b">gpio_pin_wakeup_enable</a> (uint32 i, GPIO_INT_TYPE intr_state)</td></tr>
<tr class="memdesc:gae37bc72b183440f9733f14df516cee7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure GPIO wake up to light sleep,Only level way is effective.  <a href="#gae37bc72b183440f9733f14df516cee7b">More...</a><br /></td></tr>
<tr class="separator:gae37bc72b183440f9733f14df516cee7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaffbe088057472f44ddf99c7912f54300"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#gaffbe088057472f44ddf99c7912f54300">gpio_pin_wakeup_disable</a> ()</td></tr>
<tr class="memdesc:gaffbe088057472f44ddf99c7912f54300"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable GPIO wake up to light sleep.  <a href="#gaffbe088057472f44ddf99c7912f54300">More...</a><br /></td></tr>
<tr class="separator:gaffbe088057472f44ddf99c7912f54300"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0adef8a3e9d5c302d96d1ddc360f7c79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#ga0adef8a3e9d5c302d96d1ddc360f7c79">gpio_pin_intr_state_set</a> (uint32 i, GPIO_INT_TYPE intr_state)</td></tr>
<tr class="memdesc:ga0adef8a3e9d5c302d96d1ddc360f7c79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Config interrupt types of GPIO pin.  <a href="#ga0adef8a3e9d5c302d96d1ddc360f7c79">More...</a><br /></td></tr>
<tr class="separator:ga0adef8a3e9d5c302d96d1ddc360f7c79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga678824698fa5936b7928c24c6cfd0a17"><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__Driver__APIs.html#ga678824698fa5936b7928c24c6cfd0a17">gpio_input_get</a> (void)</td></tr>
<tr class="memdesc:ga678824698fa5936b7928c24c6cfd0a17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sample the value of GPIO input pins and returns a bitmask.  <a href="#ga678824698fa5936b7928c24c6cfd0a17">More...</a><br /></td></tr>
<tr class="separator:ga678824698fa5936b7928c24c6cfd0a17"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>GPIO APIs. </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="gae1dba8cd1835b53c3e8f19ed03704678"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPIO_AS_INPUT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">gpio_bits</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(0, 0, 0, gpio_bits)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable GPIO pin intput. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gpio_bits</td><td>: The GPIO bit number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="ga42af7fcc6e27fda6e62210c756d859f5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPIO_AS_OUTPUT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">gpio_bits</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(0, 0, gpio_bits, 0)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable GPIO pin output. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gpio_bits</td><td>: The GPIO bit number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="gadc761184e3d3dbcac5088b099bb809cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPIO_DIS_OUTPUT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">gpio_no</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(0, 0, 0, 1&lt;&lt;gpio_no)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disable GPIO pin output. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gpio_no</td><td>: The GPIO sequence number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="gaa633831c2027196743ccd277cbf75572"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPIO_INPUT_GET</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">gpio_no</td><td>)</td>
          <td>&#160;&#160;&#160;((<a class="el" href="group__GPIO__Driver__APIs.html#ga678824698fa5936b7928c24c6cfd0a17">gpio_input_get</a>()&gt;&gt;gpio_no)&amp;BIT0)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sample the level of GPIO input. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gpio_no</td><td>: The GPIO sequence number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the level of GPIO input </dd></dl>

</div>
</div>
<a class="anchor" id="gae42853d0b143e451a9ad05465b353538"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPIO_OUTPUT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">gpio_bits, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">bit_value&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">if</span>(bit_value) <a class="code" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(gpio_bits, 0, gpio_bits, 0);\</div>
<div class="line">    else <a class="code" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(0, gpio_bits, gpio_bits, 0)</div>
<div class="ttc" id="group__GPIO__Driver__APIs_html_gad57551861ccb3b7f4d16c0de00717e29"><div class="ttname"><a href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a></div><div class="ttdeci">void gpio_output_conf(uint32 set_mask, uint32 clear_mask, uint32 enable_mask, uint32 disable_mask)</div><div class="ttdoc">Configure Gpio pins out or input. </div></div>
</div><!-- fragment -->
<p>Set GPIO pin output level. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gpio_bits</td><td>: The GPIO bit number. </td></tr>
    <tr><td class="paramname">bit_value</td><td>: GPIO pin output level.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="ga2cc3f29ed0d46de6cbd2f013281881a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GPIO_OUTPUT_SET</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">gpio_no, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">bit_value&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="group__GPIO__Driver__APIs.html#gad57551861ccb3b7f4d16c0de00717e29">gpio_output_conf</a>(bit_value&lt;&lt;gpio_no, ((~bit_value)&amp;0x01)&lt;&lt;gpio_no, 1&lt;&lt;gpio_no, 0)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set GPIO pin output level. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gpio_no</td><td>: The GPIO sequence number. </td></tr>
    <tr><td class="paramname">bit_value</td><td>: GPIO pin output level.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gacc7e5be6c1aed84fe3c3260deea64a3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gpio16_input_conf </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable GPIO pin intput. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">null</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="ga4484530a542760c430ebb2e754b6e621"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8 gpio16_input_get </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sample the value of GPIO16 input. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">null</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the level of GPIO16 input. </dd></dl>

</div>
</div>
<a class="anchor" id="gaf94c9f201c7ee9ad7a71b5eb8b720b00"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gpio16_output_conf </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable GPIO16 output. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">null</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="ga4f83a12f673ab6e664c6ea129a1ca9c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gpio16_output_set </td>
          <td>(</td>
          <td class="paramtype">uint8&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set GPIO16 output level. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uint8</td><td>value : GPIO16 output level.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="ga678824698fa5936b7928c24c6cfd0a17"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 gpio_input_get </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sample the value of GPIO input pins and returns a bitmask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">null</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bitmask of GPIO pins input </dd></dl>

</div>
</div>
<a class="anchor" id="ga7b94b7d43c84a8177f4301b6a001fae3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gpio_intr_handler_register </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>fn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Register an application-specific interrupt handler for GPIO pin interrupts. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">void</td><td>*fn:interrupt handler for GPIO pin interrupts. </td></tr>
    <tr><td class="paramname">void</td><td>*arg:interrupt handler's arg</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="gad57551861ccb3b7f4d16c0de00717e29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gpio_output_conf </td>
          <td>(</td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>set_mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>clear_mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>enable_mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>disable_mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure Gpio pins out or input. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uint32</td><td>set_mask : Set the output for the high bit, the corresponding bit is 1, the output of high, the corresponding bit is 0, do not change the state. </td></tr>
    <tr><td class="paramname">uint32</td><td>set_mask : Set the output for the high bit, the corresponding bit is 1, the output of low, the corresponding bit is 0, do not change the state. </td></tr>
    <tr><td class="paramname">uint32</td><td>enable_mask : Enable Output </td></tr>
    <tr><td class="paramname">uint32</td><td>disable_mask : Enable Input</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="ga0adef8a3e9d5c302d96d1ddc360f7c79"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gpio_pin_intr_state_set </td>
          <td>(</td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GPIO_INT_TYPE&#160;</td>
          <td class="paramname"><em>intr_state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Config interrupt types of GPIO pin. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uint32</td><td>i : The GPIO sequence number. </td></tr>
    <tr><td class="paramname">GPIO_INT_TYPE</td><td>intr_state : GPIO interrupt types.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="gaffbe088057472f44ddf99c7912f54300"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gpio_pin_wakeup_disable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disable GPIO wake up to light sleep. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">null</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
<a class="anchor" id="gae37bc72b183440f9733f14df516cee7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gpio_pin_wakeup_enable </td>
          <td>(</td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GPIO_INT_TYPE&#160;</td>
          <td class="paramname"><em>intr_state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure GPIO wake up to light sleep,Only level way is effective. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uint32</td><td>i : Gpio sequence number </td></tr>
    <tr><td class="paramname">GPIO_INT_TYPE</td><td>intr_state : the level of wake up to light sleep</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>null </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Mar 1 2016 10:19:26 for ESP8266_RTOS_SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
